package com.codeczx.retrofitsource;

import java.util.List;
import java.util.Observable;

import io.reactivex.Flowable;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Created by codeczx on 2018/3/6.
 */

public interface GithubService {
    @GET("users/{user}/repos")
    Call<List<ReposEntity>> getRepos(@Path("user")String user);

    @GET("users/{user}/repos")
    Flowable<List<ReposEntity>> getReposByRx(@Path("user")String user);
}
